#include "Log.hpp"
#include "ThreadPool.hpp"
#include <memory>
#include "Task.hpp"

using namespace ThreadPoolModule;
using namespace LogModule;

int main()
{
    Enable_Console_Log_Strategy();
    // ThreadPool<int> *tp = new ThreadPool<int>();
    
    int count = 10;
    while(count)
    {
        ThreadPool<task_t>::GetIntance()->Enqueue(Download);
        sleep(1);
        count--;
    }


    ThreadPool<task_t>::GetIntance()->Stop();
    sleep(5);
    ThreadPool<task_t>::GetIntance()->Join();
    return 0;
}